//
//  LianShiViewController.m
//  runtime
//
//  Created by dihuijun on 17/4/14.
//  Copyright © 2017年 Cycle. All rights reserved.
//

#import "LianShiViewController.h"
#import "NSObject+Cycle.h"
@interface LianShiViewController ()

@end

@implementation LianShiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"13-链式编程思想";
    self.view.backgroundColor = [UIColor whiteColor];
    
    double result =  [NSObject cycle_calulateResult:^(CalulateManager *manager) {
        manager.add(11.11).sub(0.8).divs(7).mult(30.6);
    }];
    
    
    NSLog(@"reslut: %.2f",result);
    
    
    
    
    
}

@end
